package com.baidu.health.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务表
 * @TableName tb_task
 */
@TableName(value ="tb_task")
public class TbTask implements Serializable {
    /**
     * 任务id
     */
    @TableId(type = IdType.AUTO)
    private Integer taskId;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 任务周期
     */
    private Integer taskNum;

    /**
     * 任务类型
     */
    private String taskType;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskStarttime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date taskEndtime;

    /**
     * 用户id
     */
    private Integer taskUid;

    /**
     * 方案id
     */
    private Integer taskCaseid;


    @TableField(exist = false)
    private Integer current;
    @TableField(exist = false)
    private Integer pagesize;

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public Integer getTaskNum() {
        return taskNum;
    }

    public void setTaskNum(Integer taskNum) {
        this.taskNum = taskNum;
    }

    public String getTaskype() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public Date getTaskStarttime() {
        return taskStarttime;
    }

    public void setTaskStarttime(Date taskStarttime) {
        this.taskStarttime = taskStarttime;
    }

    public Date getTaskEndtime() {
        return taskEndtime;
    }

    public void setTaskEndtime(Date taskEndtime) {
        this.taskEndtime = taskEndtime;
    }

    public Integer getTaskUid() {
        return taskUid;
    }

    public void setTaskUid(Integer task_Uid) {
        this.taskUid = task_Uid;
    }

    public Integer getTaskCaseid() {
        return taskCaseid;
    }

    public void setTaskCaseid(Integer taskCaseid) {
        this.taskCaseid = taskCaseid;
    }
}